<template>
	<view class="container">
		<!-- #ifdef MP-WEIXIN -->
		<authorize @showModal="is_modal"></authorize>
		<!-- #endif -->
		<modal :show1="show" :content="content" confirmText="去设置" cancelText="跳过" @confirm="confirm" @cancel="cancel"></modal>
		<view class="l-box-pf-t wh100" style="z-index: 1;">
			<view class="l-fcc wh100">
				<view class="c-tc" style="width: 75%;">
					<view @click="$Function.LinkTo('/pages/home/camera')" class="u-b o-p c-bg-f" style="display: inline-block;">
						<u-icon name="scan" color="#808080" size="140"></u-icon>
					</view>
					<view class="o-pt-s c-color-g3 c-t7" style="margin-bottom: 80px;">扫一扫，关注电梯</view>
					<view class="c-tl c-color-g2 c-s c-t7">
						<view class="c-line-17">温馨提示：</view>
						<view @click="test()" class="c-line-11">万一您被困电梯，请立即按下电梯操作面板的操作按钮与值班人员联系，此时您在轿厢内是最安全的，保持镇静，电梯内没有完全封闭结构，不会有窒息危险；请耐心等待救援人员，千万不要试图扒开轿用门，否则将会有掉落井梯的危险</view>
					</view>
				</view>
			</view>
		</view>
		
	</view>
</template>

<script>
	import modal from '@/components/modal.vue';
	export default {
		data() {
			return {
				show: false,
				content: '请设置您所在小区栋号，以便获取电梯相关信息'
			}
		},
		components:{modal},
		onLoad() {
			
		},
		methods: {
			init() {
				
			},
			test() {
				this.$store.dispatch('scan_Code',{eleId:'1376375853926928386'})
				
			},
			is_modal(e) {
				this.$nextTick(() => {
					// console.log('e3 ==>',e)
					this.show = e
				})
				
			},
			// 点击确定按钮
			confirm(e) {
				this.$set(this, 'show', e)
			},
			//点击取消按钮
			cancel(e) {
				this.$set(this, 'show', e)
			}
			
		}
	}
</script>

<style>
	
</style>
